<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/common.css" type="text/css" />
<link href="css/adminstyle.css" rel="stylesheet" type="text/css">
<title>管理区域</title>

<script src="js/js.js"></script>

<script>

  function delc(id){

	if(confirm('确认要删除此栏目，将删除所属子栏目及信息'))	{

		self.location.href='NewsClass_delete.html?id='+id;

	}

}

</script>

</head>



<body>

<div id="man_zone"><div class="div1">

<input name="" type="button" class="PublicBot" onclick="window.location.href='NewsClass_add.html'" value="添加" /></div>

<form method="get" action="NewsClass_delete.html" id="form">

  <input name="type" id="type" type="hidden" value="">

  <table width="98%"  border="0" align="center"  cellpadding="3" cellspacing="1"  class="tableborder">

    <tr class="header">

    <td width="25"></td>

      <td width="247" align="center"  >ID</td>

      <td width="695" >标题</td>

     

      <td width="310" align="center">编辑</td>

    </tr>

   <?

        function  classInfo ($data,$leve=0,$tmp="")

		{

			if (!empty($data))

			{

				if ($leve>0)

				{

					$tmp="|--".$tmp;

				}

				$leve++;

				

				foreach ($data as $v)

				{

					?>

    <tr bgcolor="#FFFFFF">

          <td align="center"><input type="checkbox" name="id[]" id="checkbox" value="<?=$v['id']?>"></td>

      <td  align="center"><?=$tmp?><?=$v['id']?></td>

      <td  align="center">	  <?=$tmp?><?=$v['title']?></td>



     

      <td align="center"><a onclick=delc(<?=$v['id']?>) 

    href="#">删除</a>　　<a href="NewsClass_add.html?id=<?=$v['id']?>">修改</a></td>

    </tr> 

			<?

                    classInfo($v['next'],$leve,$tmp);

				}

			}

		}

		classInfo($list,0);

		?>



 <tr bgcolor="#FFFFFF">

 <td align="center"><input type="checkbox" name="chkall" id="checkbox"  onClick="CheckAll(this.form)"></td>

 <td colspan="3">

 <input type="button" class="PublicBot" name="delete" id="button" value="删除" onClick="submits('batchDelete')">

 </td>

 </tr>

  </table>

 </form>

</div>



</body>

</html>

